package matlap.client.services.registration;

import java.util.List;

import matlap.shared.Student;
import matlap.shared.exceptions.MyException;

import com.google.gwt.user.client.rpc.RemoteService;
import com.google.gwt.user.client.rpc.RemoteServiceRelativePath;

@RemoteServiceRelativePath("reg")
public interface RegService extends RemoteService {

	String insertPeople(int role, Student student);

	String insertIntoRegistered(Student student);

	int selectSchoolID(String school);

	void insertStudents(String username, String school, int clas);

	void insertInPeople(int role, String last_name, String first_name,
			String address) throws MyException;

	void insertStudentsPeople(String last_name, String first_name,
			String address, String school, int clas) throws MyException;

	void updatePassword(String username, String p);

	void updateContact(String username, String email, String phone,
			String address);

	void updatePeople(String username, String last_name, String first_name,
			String address);

	List<String> getRegNames();
}
